
const routes = [
  {
    path: '/',
    component: () => import('layouts/MainMatter.vue'),
    children: [
      { path: '', component: () => import('pages/LandingPage.vue') },
      { path: 'projectlist',
        name: 'projectlist',
        component: () => import('pages/ProjectList.vue') },
      { path: 'vdatalist',
        name: 'vdatalist',
        component: () => import('pages/VdataList.vue') },
      { path: 'vdataplot',
        name: 'vdataplot',
        component: () => import('pages/VdataPlot.vue') },
      { path: 'fileio',
        name: 'fileio',
        component: () => import('pages/FileIO.vue') }
    ]
  }
]

// Always leave this as last one
if (process.env.MODE !== 'ssr') {
  routes.push({
    path: '*',
    component: () => import('pages/Error404.vue')
  })
}

export default routes
